* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(97, 124, 138);
}

li {
  list-style: none;
}

.cards {
  width: 942px;
  height: 384px;
  color: #fff;

  /* 弹性布局 */
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/* overflow 属性规定当内容溢出元素框时发生的事情。   */
/* overflow 针对父元素使用 */
.cards .card {
  position: relative;
  width: 262px;
  height: 358px;
  border-radius: 20px;
  transition: all 200ms linear;

  overflow: hidden;
}

/* 蒙层要置于最上层 z-index 要大一点 */
.cards .card .mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all 200ms linear;
}

.cards .card .content {
  position: absolute;
  top: 0;
  left: 0;
  padding-left: 20px;
}

.cards .card .title {
  font-size: 36px;
  height: 90px;
  line-height: 90px;
}

/* word-break: break-all (中文/日文/韩文) 文本，可在任意字符间断行 */
.cards .card .words {
  line-height: 30px;
  width: 90%;
  word-break: break-all;
}

/* saturate 饱和度 */
.cards .card:hover {
  filter: saturate(1);
  transform: scale(1.02);
  box-shadow: 0 0 15px #fff;
}


/* :not(selector) 否定选择器 */
.cards:hover .mask:not(:hover) {
  background-color: rgba(0, 0, 0, .6);
  filter: opacity(0.9) brightness(0.9);
}

.cards:hover .card:not(:hover) {
  filter: blur(2px);
}


.cards>.card:nth-child(1) {
  background: url("./images/1.jfif") no-repeat;
  background-size: cover;
}

.cards>.card:nth-child(2) {
  background: url("./images/2.jfif") no-repeat;
  background-size: cover;
}

.cards>.card:nth-child(3) {
  background: url("./images/3.jfif") no-repeat;
  background-size: cover;
}